<HTML><HEAD><TITLE>Manpage of mount.zfs</TITLE>
</HEAD><BODY>
<H1>mount.zfs</H1>
Section: System Administration Commands (8)<BR>Updated: 2013 FEB 28<BR>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT><A HREF="#lbAB">NAME</A><DD>
<DT><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT><A HREF="#lbAE">OPTIONS</A><DD>
<DT><A HREF="#lbAF">NOTES</A><DD>
<DT><A HREF="#lbAG">FILES</A><DD>
<DT><A HREF="#lbAH">AUTHORS</A><DD>
<DT><A HREF="#lbAI">SEE ALSO</A><DD>
</DL>
<HR>
<A HREF="../index.html">Return to Main Contents</A><HR>

<P>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>

mount.zfs - mount a ZFS filesystem
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>

<P>

<B>mount.zfs [-sfnvh] [-o </B><I>options</I><B>]</B><I> dataset mountpoint</I>

<P>
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>

<B>mount.zfs</B>

is part of the zfsutils package for Linux. It is a helper program that
is usually invoked by the
<B><A HREF="../man8/mount.8.html">mount</A></B>(8)

or
<B><A HREF="../man8/zfs.8.html">zfs</A></B>(8)

commands to mount a ZFS dataset.
<P>
All
<I>options</I>

are handled according to the FILESYSTEM INDEPENDENT MOUNT OPTIONS
section in the
<B><A HREF="../man8/mount.8.html">mount</A></B>(8)

manual, except for those described below.
<P>
The
<I>dataset</I>

parameter is a ZFS filesystem name, as output by the
<B>zfs list -H -o name</B>

command. This parameter never has a leading slash character and is
not a device name.
<P>
The
<I>mountpoint</I>

parameter is the path name of a directory.
<P>
<P>
<A NAME="lbAE">&nbsp;</A>
<H2>OPTIONS</H2>

<DL COMPACT>
<DT><B>-s</B>

<DD>
Ignore bad or sloppy mount options.
<DT><B>-f</B>

<DD>
Do a fake mount; do not perform the mount operation.
<DT><B>-n</B>

<DD>
Do not update the /etc/mtab file.
<DT><B>-v</B>

<DD>
Increase verbosity.
<DT><B>-h</B>

<DD>
Print the usage message.
<DT><B>-o context</B>

<DD>
This flag sets the SELinux context for all files in the filesystem
under that mountpoint.
<DT><B>-o fscontext</B>

<DD>
This flag sets the SELinux context for the filesystem being mounted.
<DT><B>-o defcontext</B>

<DD>
This flag sets the SELinux context for unlabeled files.
<DT><B>-o rootcontext</B>

<DD>
This flag sets the SELinux context for the root inode of the filesystem.
<DT><B>-o legacy</B>

<DD>
This private flag indicates that the
<I>dataset</I>

has an entry in the /etc/fstab file.
<DT><B>-o noxattr</B>

<DD>
This private flag disables extended attributes.
<DT><B>-o xattr</B>

<DD>
This private flag enables directory-based extended attributes and, if
appropriate, adds a ZFS context to the selinux system policy.
<DT><B>-o saxattr</B>

<DD>
This private flag enables system attributed-based extended attributes and, if
appropriate, adds a ZFS context to the selinux system policy.
<DT><B>-o dirxattr</B>

<DD>
Equivalent to
<B>xattr</B>.

<DT><B>-o zfsutil</B>

<DD>
This private flag indicates that
<B><A HREF="../man8/mount.8.html">mount</A></B>(8)

is being called by the
<B><A HREF="../man8/zfs.8.html">zfs</A></B>(8)

command.
<P>
</DL>
<A NAME="lbAF">&nbsp;</A>
<H2>NOTES</H2>

ZFS conventionally requires that the
<I>mountpoint</I>

be an empty directory, but the Linux implementation inconsistently
enforces the requirement.
<P>
The
<B>mount.zfs</B>

helper does not mount the contents of zvols.
<P>
<A NAME="lbAG">&nbsp;</A>
<H2>FILES</H2>

<DL COMPACT>
<DT><I>/etc/fstab</I>

<DD>
The static filesystem table.
<DT><I>/etc/mtab</I>

<DD>
The mounted filesystem table.
</DL>
<A NAME="lbAH">&nbsp;</A>
<H2>AUTHORS</H2>

The primary author of
<B>mount.zfs</B>

is Brian Behlendorf &lt;behlendorf1@llnl.gov&gt;.
<P>
This man page was written by Darik Horn &lt;dajhorn@vanadac.com&gt;.
<A NAME="lbAI">&nbsp;</A>
<H2>SEE ALSO</H2>

<B><A HREF="../man5/fstab.5.html">fstab</A></B>(5),

<B><A HREF="../man8/mount.8.html">mount</A></B>(8),

<B><A HREF="../man8/zfs.8.html">zfs</A></B>(8)

<P>

</BODY>
</HTML>
